﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

/// <summary>
/// DirectoryInfo 的摘要说明
/// </summary>
public class DirectoryIntro
{
    //编号
    private int _ID;
    public int ID
    {
        get
        {
            return _ID;
        }
        set
        {
            _ID = value;
        }
    }

    //文件夹名称
    private string _Name;
    public string Name
    {
        get
        {
            return _Name;
        }
        set
        {
            _Name = value;
        }
    }

    //文件夹路径
    private string _Path;
    public string Path
    {
        get
        {
            return _Path;
        }
        set
        {
            _Path = value;
        }
    }

    //是否有子文件夹
    private bool _IsChild;
    public bool IsChild
    {
        get
        {
            return _IsChild;
        }
        set
        {
            _IsChild = value;
        }
    }

    private IList<DirectoryIntro> children = new List<DirectoryIntro>();

    public IList<DirectoryIntro> Children
    {
        get { return children; }
    }
    public void SetParent(DirectoryIntro dir)
    {
        this.children.Add(dir);
    }
}
